<?php
/**
 * IMMOPHP
 * */
require 'kernel/common.php';

if(!$Session->check_admin()) redirect('index.php');

require IMMOPHP_ADMIN_ROOT_PATH . 'kernel/Agence.class.php';
$Agence = new Agence($paramClass);

if(isset($_POST['ajout'])) $Agence->ajout();
if(isset($_POST['edit'])) $Agence->edit();
if(isset($_GET['delete'])) $Agence->delete();

$Agence->liste_index();

require_once 'footer.php'
?>